/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86155
 * date: 2024-03-24
 * Time: 14:53
 *
 * @author 继承作业
 */

class A {
    public String toString()
    {
        System.out.println("aaa");
        return "bbb";
    }
}
class B{
    @Override
    public String toString() {
        return "111";
    }
}
public class Test {
    public static void main(String[] args) {
        A a = new A();
        B b = new B();
        System.out.println(b);
        //System.out.println(a);
    }
}
